using System;
using System.Collections.Generic;
using System.Configuration;

namespace DogBite.Dachshund.Configuration
{
    public class NavigationList : ConfigurationElement
    {
        [ConfigurationProperty("name")]
        public string Name
        {
            get { return this["name"].ToString(); }
            set { this["name"] = value; }
        }

        [ConfigurationProperty("navigations")]
        [ConfigurationCollection(typeof(Navigation), AddItemName = "navigation")]
        public NavigationCollection Navigations
        {
            get { return (NavigationCollection)this["navigations"]; }
            set { this["navigations"] = value; }
        }
    }
}
